﻿namespace ClassyBlog.Infrastructure.Specs.Unit
{
    using Machine.Specifications;

    [Subject(typeof(TextileFormatter))]
    public class when_formatted_with_textile_formatter
    {
        static TextileFormatter formatter;
        static string output;

        Establish context = () => formatter = new TextileFormatter();

        Because of = () => output = formatter.Format("h1. Hello World");

        It should_return_html = () =>
            output.ShouldContain("<h1>Hello World</h1>");
    }
}